Mutter BackgroundActor is able do detect this at lower level
https://bugzilla.gnome.org/show_bug.cgi?id=765011
this._container.add_child(backgroundActor);
- let monitor = this._layoutManager.monitors[this._monitorIndex];
-
- backgroundActor.set_size(monitor.width, monitor.height);
if (this._controlPosition) {
+ let monitor = this._layoutManager.monitors[this._monitorIndex];
backgroundActor.set_position(monitor.x, monitor.y);
backgroundActor.lower_bottom();
}